var m_IE=false,m_showDelay,m_hideDelay;if(window.navigator.appName.toLowerCase().indexOf("explorer")!=-1)m_IE=true;var m_showClientDelay;function ClientLoad(b){var a=document.getElementById("JsInfoPanel");a.style.display="none";m_showClientDelay=setTimeout("ShowClient();",b)}function ShowClient(){try{m_showClientDelay=window.clearTimeout(m_showClientDelay);var b=document.getElementById("ScreenMainPanel");b.style.display="block";var a=document.getElementById("ScreenLoadPanel");a.style.display="none"}catch(c){alert("Operation is temporary unavailable.")}}function PrintWindow(){if(m_IE){var b="
";document.body.insertAdjacentHTML("beforeEnd","");var a=printHiddenHelpFrame.document;a.open();a.write(b);a.write("");a.write("");a.close();printHiddenHelpFrame.focus();printHiddenHelpFrame.print();printHiddenHelpFrame.close()}else window.print()}function PrintReceipt(d,c){var b="";document.body.insertAdjacentHTML("beforeEnd","");var a=printFrame.document;a.open();a.write(b);a.write("");a.write(d);a.write("");a.write(document.getElementById(c).innerHTML);a.write("
");a.write("");a.close();printFrame.focus();setTimeout("printFrame.print();",150);printFrame.close()}function SetMasterCheckbox(a){document.getElementById(a).checked=false}function SetSlaveCheckboxes(d,e){var b=e.split(","),a=document.getElementById(d).checked;for(i=0;i-1){var a=d[c];if("onfocusin"in a){if(a.addEventListener){a.addEventListener("focusin",OnFocusInSearchForm,false);a.addEventListener("focusout",OnFocusOutSearchForm,false)}else if(a.attachEvent){a.attachEvent("onfocusin",OnFocusInSearchForm);a.attachEvent("onfocusout",OnFocusOutSearchForm)}}else if(a.addEventListener){a.addEventListener("focus",OnFocusInSearchForm,true);a.addEventListener("blur",OnFocusOutSearchForm,true)}try{a.focus()}catch(f){searchFocus=setTimeout("setSearchFormFocus('"+b+"');",100)}searchFocus=setTimeout("setSearchFormFocus('"+b+"');",100);searchHasFocus&&window.clearTimeout(searchFocus);searchFocus!=null&&m_IE&&searchHasFocus&&window.clearTimeout(searchFocus);break}}catch(f){searchFocus=setTimeout("setSearchFormFocus('"+b+"');",100)}}function OnFocusInSearchForm(){searchHasFocus=true}function OnFocusOutSearchForm(){searchHasFocus=false}function ShowPopupTest(){try{var a=window.open("popuptest.html","PopupTest","width=1,height=1,left="+300+",top="+300+",scrollbars=no,toolbar=no,menubars=no,location=no,status=no,titlebar=no");if(!CheckPopupBlocked(a)){a&&a.close();alert("Popup blockers are disabled.")}a&&!a.closed&&a.close()}catch(b){CheckPopupBlocked(null)}}function CheckPopupBlocked(a){var b=false;if(!a||a.closed||typeof a.closed=="undefined"||a.test||a.outerHeight==0){b=true;alert("Popup blockers must be disabled to use this application.")}return b}var g_PopupDisable;function OpenPopupWindow(){var b="PupupBlockerHelp.aspx",a="PopupDisable";g_PopupDisable=open(b,a,"height=600,width=700,left=200,top=200,resizable=yes,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=no");CheckPopupBlocked(g_PopupDisable)}function OpenResourceProvider(d,f,e){var c="PublicDownload.aspx";c+="?path="+d+"&Filename="+f+"&descr="+e;var a="ResourceProvider",b="g_"+a;b=open(c,a,"width=500,height=250,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");CheckPopupBlocked(b)}var g_PrintTesting;function OpenPrintWizard(b){var a="PrintWizard.aspx";a+="?TestMode=1&path="+b;var c="PrintTesting";g_PrintTesting=open(a,c,"width=600,height=500,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");CheckPopupBlocked(g_PrintTesting)}function OpenRegistrationWizard(){var b="Registration.aspx",a="Registration";g_Registration=open(b,a,"width=800,height=700,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");CheckPopupBlocked(g_Registration)}var widthKey,heightKey,leftKey,topKey;function SaveWindowProperties(){var b=0,a=0,c=0,d=0;if(typeof window.innerWidth=="number"){b=window.innerWidth;a=window.innerHeight;c=window.screenX;d=window.screenY}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientWidth;a=document.documentElement.clientHeight;c=window.screenLeft;d=window.screenTop}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientWidth;a=document.body.clientHeight;c=window.screenLeft;d=window.screenTop}document.cookie=widthKey+" = "+b;document.cookie=heightKey+" = "+a;document.cookie=topKey+" = "+d;document.cookie=leftKey+" = "+c}function RegisterEvents(b,a,c,d){widthKey=b;heightKey=a;leftKey=c;topKey=d;if(navigator.appName.indexOf("Netscape")>-1)window.addEventListener("unload",SaveWindowProperties,false);else window.attachEvent("onunload",SaveWindowProperties,false)}function doUnload(){try{g_Registration.close()}catch(a){}try{g_Search_Help.close()}catch(a){}try{g_View_DocImage.close()}catch(a){}try{g_View_Certivicate.close()}catch(a){}try{g_View_Encumbrance.close()}catch(a){}try{g_DownloadWizard.close()}catch(a){}try{g_PrintWizard.close()}catch(a){}try{g_ResourceProvider.close()}catch(a){}try{g_PublicDownload.close()}catch(a){}try{g_PopupDisable.close()}catch(a){}try{g_PrintTesting.close()}catch(a){}}function scrollToCtrl(d,c){var b=document.getElementById(d),a=document.getElementById(c);if(a&&b)b.scrollTop=a.offsetTop}function ChangeCalendarView(a){if(a._name==null||a._name.indexOf("fixed")==-1){var c=a._container.getClientRects()[0].top,b=a._container.getClientRects()[0].left;if(window.navigator.appName.toLowerCase().indexOf("explorer")!=-1){var e=navigator.userAgent,d=e.indexOf("MSIE "),f=0;if(d!=-1)f=parseFloat(e.substring(d+5,e.indexOf(";",d)));if(f>=9){a._container.style.left=b+"px";a._container.style.top=c+"px"}else{a._container.style.left=b;a._container.style.top=c}}else{a._container.style.left=b+"px";a._container.style.top=c+"px"}a._container.style.position="fixed";a._name+="_fixed"}else a._container.style.position="fixed"}m_HideControl=null;function HideControlTimer(a,b){m_HideControl=setTimeout("HideControl('"+a+"');",b)}function HideControl(b){m_HideControl=window.clearTimeout(m_HideControl);var a=document.getElementById(b);if(a!=null&&a!=undefined)a.style.display="none"}function SelectCheckBoxes(){$(".CategoryChkBox input:first-child:not(:disabled)").prop("checked",true)}function InvertSelectCheckBoxes(){$(".CategoryChkBox input:first-child:not(:disabled)").each(function(){$(this).prop("checked",!$(this).prop("checked"))})};